package com.liyuxiang.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.liyuxiang.pojo.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liyuxiang.pojo.vo.CommentVo;

import java.util.List;

/**
* @author liyuxiang
* @description 针对表【sg_comment(评论表)】的数据库操作Mapper
* @createDate 2022-03-29 16:22:07
* @Entity com.liyuxiang.pojo.entity.Comment
*/
public interface CommentMapper extends BaseMapper<Comment> {


    List<CommentVo> getCommentListPage(IPage<CommentVo> page, Long articleId);

    List<CommentVo> getCommentchildrenList(Long commentId);

    Integer addComment(Comment comment);
}




